home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16151 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: camelot.dsccc.com!kcline
  2. From: kcline@sun132.spd.dsccc.com (Kevin Cline)
  3. Newsgroups: comp.lang.c++,rec.games.programmer,alt.msdos.programmer,comp.programming
  4. Subject: Re: Young programmers read me.
  5. Date: 9 Apr 1996 19:42:36 GMT
  6. Organization: DSC Communications Corporation Switch Products Division
  7. Message-ID: <4keejc$lpi@tpd.dsccc.com>
  8. References: <4icpp9$7hr@barad-dur.nas.com> <aidan-0404961557290001@meathook.intac.com> <3165AD94.6F3A@datalytics.com> <j-jahnke-0604960016160001@ntcs-ip8.uchicago.edu>
  9. NNTP-Posting-Host: sun132.spd.dsccc.com
  10.  
  11. In article <j-jahnke-0604960016160001@ntcs-ip8.uchicago.edu>,
  12. Jerome Jahnke <j-jahnke@uchicago.edu> wrote:
  13. >I personally
  14. >can't read some styles on C and C++[;] the guys that put the starting brace
  15. >on the same line as a conditional or a loop drive me batty and I need to
  16. >use CDent to change the code just so I can read it. 
  17.  
  18. This should not be a problem if the code is properly indented, ala
  19.  
  20. if (something_happened) {
  21.   do_something_else();
  22. }
  23.  
  24. There is something to be said for conserving screen real-estate.
  25. I have worked on hard-copy terminals, then on 24x80 screens, then
  26. on workstations.  Workstations are better because I can see more code
  27. at one time, unless someone wastes all the lines with whitespace and
  28. braces.
  29.  
  30. >And if you think about it, it is a lot easier to find a BEGIN and END in a
  31. >chunk of code than a { and }. They are just bigger and easier to spot.
  32.  
  33. If the code follows any reasonable indentation style, BEGIN and END add
  34. no information.  They are important to the compiler, but not very important
  35. to me, trying to read the code, since they don't do anything.
  36. I don't want them to take up a lot of visual space.  
  37.  
  38. Would prose be easier to read if the punctuation took more room
  39. INTERROGATION  I think not PERIOD
  40.  
  41.  
  42.  
  43.  
  44. -- 
  45. Kevin Cline
  46.